//
//  SearchPoiResultModel.h
//  o_amap
//
//  Created by Q神 on 2021/4/8.
//

#import <Foundation/Foundation.h>
#import <AMapSearchKit/AMapSearchKit.h>
#import "SearchSuggestionCityModel.h"

@class SearchMapPoiModel;

NS_ASSUME_NONNULL_BEGIN

@interface SearchPoiResultModel : NSObject


@property (nonatomic, assign) NSInteger pageCount;

@property (nonatomic, strong) NSArray<SearchMapPoiModel *> * pois;

@property (nonatomic, strong) NSArray<SearchSuggestionCityModel *> * searchSuggestionCitys;

@property (nonatomic, strong) NSArray<NSString *> * searchSuggestionKeywords;


+ (SearchPoiResultModel *)createPoiResultModelWithResponse:(AMapPOISearchResponse *)response;

@end



//@interface SearchSuggestionCityModel : NSObject
//
/////城市名称
//@property (nonatomic, copy) NSString  *cityName;
/////城市编码
//@property (nonatomic, copy) NSString  *cityCode;
/////城市区域编码
//@property (nonatomic, copy) NSString  *adCode;
/////此区域的建议结果数目, AMapSuggestion 中使用
//@property (nonatomic, assign) NSInteger  suggestionNum;
/////途径区域 AMapDistrict 数组，AMepStep中使用，只有name和adcode。
////@property (nonatomic, strong) NSArray<AMapDistrict *> *districts;
//
//+ (NSArray<SearchSuggestionCityModel *> *)createPoiResultModelWithCitys:(NSArray<AMapCity *> *)arrays;
//
//
//@end


NS_ASSUME_NONNULL_END
